package com.apimarket.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:
 * @Author ZXR
 * @Date 2021/7/1 21:04
 * @Version 1.0
 */

@RestController
//@RequestMapping("/redisTest")
@RequestMapping("/nanshou")
public class TestController {
    @Autowired
    private RedisTemplate redisTemplate;
    @RequestMapping(value = "/rtest", method = {RequestMethod.POST})
    public String testRedis(String username){
        System.out.println(username);
        return username;
    }

}
